package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Role;

import java.util.List;
import java.util.Map;

public interface MenuService {
    PageResult findPage(Integer currentPage, Integer pageSize, String queryString);

    List<Menu> findFirstMenu();

    void add(Menu menu,Integer[] roleIds);

    Menu findById(Integer menuId);

    void edit(Menu menu);

    void deleteById(Integer menuId);

    Map getMenu(String username);

    List<Role> findAllRoles();

}
